//
//  ViewController.m
//  王宇先_06_相册
//
//  Created by wyx on 16/3/16.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "ViewController.h"
#import "MyScorllView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    MyScorllView *scorll = [[MyScorllView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width * 4, self.view.frame.size.height)];
    scorll.contentSize = CGSizeMake(self.view.frame.size.width, self.view.frame.size.height);
    [self.view addSubview:scorll];
    [scorll release];
    MyScorllView *scr1 = [[MyScorllView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    [scr1 setBackgroundColor:[UIColor yellowColor]];
    [scorll addSubview:scr1];
    [scr1 release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
